package com.qidianit.mes.pojo.pro;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


@Data
@TableName("process")
public class Process {

    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("process_code")
    private String processCode;
    @TableField("process_name")
    private String processName;
    @TableField("process_description")
    private String processDescription;
    private String remarks;
    @TableField("id_active")
    private Integer isActive;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    @TableField("creator_id")
    private Long creatorId;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;

    @TableField("modifier_id")
    private Long modifierId;
    @TableField("is_deleted")
    private Integer isDeleted;


    private Workflow workflow;
    private WorkflowProcess workflowProcess;
}
